package top.wangjiu.reactive.rpc.config;

import top.wangjiu.reactive.rpc.generater.HashMethodNameIdGenerater;
import top.wangjiu.reactive.rpc.generater.RequestIdGenerater;
import top.wangjiu.reactive.rpc.loadbalance.RandomLoadBalance;
import top.wangjiu.reactive.rpc.loadbalance.LoadBalance;

/**
 * @ClassName DefaultServiceConfig
 * @Description TODO
 * @Author wangjiu
 * @Date 2021/7/15 11:35 上午
 */
public class DefaultServiceConfig implements ServiceConfig{

    @Override
    public LoadBalance getLoadBalance() {
        return new RandomLoadBalance();
    }

    @Override
    public int getVersion() {
        return 0;
    }

    @Override
    public long getTimeout() {
        return 0;
    }

    @Override
    public RequestIdGenerater getRequestIdGenerater() {
        return new HashMethodNameIdGenerater();
    }



}
